package com.taojie.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user")
@Api("用户")
public class User {
    @ApiModelProperty("用户")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 昵称
     */
    @ApiModelProperty("昵称")
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    @TableField(value = "real_name")
    private String realName;

    /**
     * 电话
     */
    @ApiModelProperty("电话")
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 签名
     */
    @ApiModelProperty("签名")
    @TableField(value = "sign")
    private String sign;

    /**
     * 头像
     */
    @ApiModelProperty("头像")
    @TableField(value = "icon")
    private String icon;

    /**
     * 积分
     */
    @ApiModelProperty("积分")
    @TableField(value = "integral")
    private Integer integral;

    /**
     * 是否是VIP 是为1 不是为0
     */
    @ApiModelProperty("VIP")
    @TableField(value = "is_vip")
    private Integer isVip;
}